package com.yfproject.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.yfproject.models.Labels;
import com.yfproject.models.custommodels.*;



public interface LableService{
	
	
	public Page<Labels> findByNameAndStatus(String name,Integer status, Pageable pageable);
	
	public Page<Labels> qryParentLabel(Long parentId,Pageable pageable);
	
	public Page<Labels> queryByParentIdAndStatus(Long parentId, int i, Pageable pageable);
	
	public Page<Labels> findByName(String name,Pageable pageable);
	
	public List<Labels> qryLabel(Long id);
	
	public List<Labels> qryParentLabel(Long id);

	public List<Labels> queryByParentIdAndStatus(Long id, int status);
	
	public LevelCount qryLevel(int level);
	
	public List<LevelCount2> qryAndCountByLevel(int level);
	
	public void delLabel(Long id);
	
	public Void insertLabel(String name,int level,int status,Long parent_id,String describtion);
	
	public Void insertLabel(String name, int level, int status, Long parent_id) ;
	
	public Void modifyLabel(Long id,String name);
	
	public Void modifyLabel(Long id,String name,String describtion);
	
	public List<Labels> findByName(String name);
	
	public List<Labels> findByNameAndStatus(String name,Integer status);
	
}
